package com.example.demo.domain.dto;

import java.util.List;

import com.example.demo.domain.Article;
import com.example.demo.domain.ArticleImage;
import com.example.demo.domain.Comment;
import com.example.demo.domain.Like;
import com.example.demo.domain.Tag;

/**
 * 
 * domain下的Article对应数据库中article表，
 * 此处ArticleDTO再绑定文章标签、评论等成为一个整体。
 *
 */
public class ArticleDTO {
	private Article article;
	/** 文章作者。文章表中没有作者信息，只有UID，需要转换 **/
	private String author;
	/** 类别的cgname **/
	private String category;
	/** 评论量 **/
	private Integer comentCounts;
	/** 转发量 **/
	private Integer repostCounts;
	private List<Tag> tags;
	private List<Comment> comments;
	private List<ArticleImage> images;
	private List<Like> likes;
	
	public Article getArticle() {
		return article;
	}
	public Integer getComentCounts() {
		return comentCounts;
	}
	public void setComentCounts(Integer comentCounts) {
		this.comentCounts = comentCounts;
	}
	public Integer getRepostCounts() {
		return repostCounts;
	}
	public void setRepostCounts(Integer repostCounts) {
		this.repostCounts = repostCounts;
	}
	public void setArticle(Article article) {
		this.article = article;
	}
	public List<Tag> getTags() {
		return tags;
	}
	public void setTags(List<Tag> tag) {
		this.tags = tag;
	}
	public List<ArticleImage> getImages() {
		return images;
	}
	public void setImages(List<ArticleImage> images) {
		this.images = images;
	}
	public List<Like> getLikes() {
		return likes;
	}
	public void setLikes(List<Like> likes) {
		this.likes = likes;
	}
	public List<Comment> getComments() {
		return comments;
	}
	public void setComments(List<Comment> comments) {
		this.comments = comments;
	}
	public String getAuthor() {
		return author;
	}
	public void setAuthor(String author) {
		this.author = author;
	}
	public String getCategory() {
		return category;
	}
	public void setCategory(String category) {
		this.category = category;
	}
}
